/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package anotherFrameWork;

/**
 *
 * @author Windows7
 */

public class point {
	
        float x;
	float y;
	
	public point()
	{
		this.x = 1;
		this.y = 1;
	}
	
	public point(float x, float y)
	{
		this.x = x;
		this.y = y;
	}
	
	public point(point d)
	{
		this.x = d.x;
		this.y = d.y;
	}
        
        public boolean isSamePoint(point p)
        {
            if(this.x == p.x && this.y == p.y)
            {
                return true;
            }
            return false;
        }
        
        public int xlargerThan(point p)
        {
            if(this.x > p.x)
                return 1;
            else if(this.x < p.x)
                return -1;
            return 0;
        }
	
	public void setX(float x)
	{
		this.x = x;
	}
	
	public float getX()
	{
		return this.x;
	}
	
	public void setY(float y)
	{
		this.y = y;
	}
	
	public float getY()
	{
		return this.y;
	}
        
        public void plusX(float i)
        {
            this.x += i;
        }
        
        public void plusY(float j)
        {
            this.y += j;
        }
        
        public void minusX(int i)
        {
            this.x -= i;
        }
       
        
        public void calSlope(float s, float b)
        {
            this.y = this.x * s + b;
        }
}